// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import elementui from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import Axios from 'axios'
import store from './store'
import Vddl from 'vddl';
import echarts from 'echarts'

Vue.use(Vddl);
Vue.use(elementui)

Vue.prototype.$echarts = echarts;
Vue.prototype.$axios = Axios

// 集成百度编辑器
import '../static/UEditor/ueditor.config.js'
import '../static/UEditor/ueditor.all.js'
import '../static/UEditor/lang/zh-cn/zh-cn.js'
import '../static/UEditor/ueditor.parse.min.js'

//线上打包环境
 Axios.defaults.baseURL = 'https://www.tissys.com/api/v1' //正式环境
//  Axios.defaults.baseURL = 'http://www.tissys.com/api/v1' //正式环境  
// Axios.defaults.baseURL = 'http://tennis.laigl.com/api/v1' //本地测试环境

//dev开发环境
//  Axios.defaults.baseURL = '/api/v1'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
